
/*
 * @Descripttion: 
 * @version: 
 * @Author: by
 * @Date: 2021-08-13 16:34:01
 * @LastEditors: tc
 * @LastEditTime: 2022-03-01 11:15:30
 */
import request from '../utils/request'

const homeApi = {}

// 根据条件查询小时数据
homeApi.findByIdHour = (params) => {
    return request({
        url: '/workplatform/hour/findByIdHour',
        method: 'get',
        params:params
    })
}

// 根据查询所有风险的水库
homeApi.findRiskErr = (params) => {
    return request({
        url: '/workplatform/hour/findRiskErr',
        method: 'get',
        params:{}
    })
}

// 根据查询所有异常的水库
homeApi.findRunErr = (params) => {
    return request({
        url: '/workplatform/hour/findRunErr',
        method: 'get',
        params:{}
    })
}

// 首页提示
homeApi.remind = (params) => {
    return request({
        url: '/xfys/statistics/remind',
        method: 'post',
        data:params
    })
}

// 地质图片
homeApi.getGeologyImge = (params) => {
    return request({
        url: '/gis/geology/getGeologyImge',
        method: 'get',
        params:params
    })
}

// 堤坝视频监控
homeApi.getSituationVideo = (params) => {
    return request({
        url: '/workplatform/hour/video',
        method: 'get',
        params:params
    })
}

export default homeApi